{__NOLAYOUT__}
<include file="Index:header" />
<script type="text/javascript" src="__JS__/jquery.treetable.js"></script>
<script type="text/javascript">
  
  function checknode(obj)
  {
      var chk = $("input[type='checkbox']");
      var count = chk.length;
      var num = chk.index(obj);
      var level_top = level_bottom =  chk.eq(num).attr('level')
      for (var i=num; i>=0; i--)
      {
              var le = chk.eq(i).attr('level');
              if(eval(le) < eval(level_top)) 
              {
                  chk.eq(i).attr("checked",true);
                  var level_top = level_top-1;
              }
      }
      for (var j=num+1; j<count; j++)
      {
              var le = chk.eq(j).attr('level');
              if(chk.eq(num).attr("checked")==true) {
                  if(eval(le) > eval(level_bottom)) chk.eq(j).attr("checked",true);
                  else if(eval(le) == eval(level_bottom)) break;
              }
              else {
                  if(eval(le) > eval(level_bottom)) chk.eq(j).attr("checked",false);
                  else if(eval(le) == eval(level_bottom)) break;
              }
      }
  }
</script>
<div id="main"> <!-- Main, right side content -->
		<div id="content"> <!-- Content begins here -->
			<h2>菜单列表</h2>	
<div class="pad-lr-10">
<div class="table-list">
<form action="__URL__/setNode" method="post">
    <table width="100%" cellspacing="0" id="dnd-example">
	<tbody>
    {$categorys}
	</tbody>
    </table>
  
    <div class="btn"><input type="submit" class="button" name="dosubmit" value="确定" /><input type="hidden" class="button" name="roleId" value="{$roleid}" /></div>
</form>
</div>
</div>
</div><!-- /Form -->
				
		</div> <!-- END Content -->
		
	</div>
	<script src="__JS__/checkadmin.js" type="text/javascript"></script>
<include file="Public:content_footer" />